package com.sxbbc.common.core.entity.jz;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.util.Date;
import java.io.Serializable;

/**
 * <p>
 * 团购订单附属信息表
 * </p>
 *
 * @author xiaoky
 * @since 2019-05-10
 */
@TableName("order_config_group")
public class OrderConfigGroup extends Model<OrderConfigGroup> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer cid;

    /**
     * 团购编号
     */
    private String groupCode;

    /**
     * 订单号
     */
    private String orderCode;

    /**
     * 是否是团长  0否 1是
     */
    private Integer leader;

    /**
     * 拼团需要总人数
     */
    private Integer groupNum;

    /**
     * 拼团时间单位分钟
     */
    private Integer groupTime;

    /**
     * 拼团截止时间
     */
    private Date overTime;

    /**
     * 拼团状态 1拼团中 2拼团成功 3拼团失败退款
     */
    private Integer status;

    /**
     * 是否退款 0未退款 1已退款
     */
    private Integer refund;

    /**
     * 创建时间
     */
    private Date createTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }
    public String getGroupCode() {
        return groupCode;
    }

    public void setGroupCode(String groupCode) {
        this.groupCode = groupCode;
    }
    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }
    public Integer getLeader() {
        return leader;
    }

    public void setLeader(Integer leader) {
        this.leader = leader;
    }
    public Integer getGroupNum() {
        return groupNum;
    }

    public void setGroupNum(Integer groupNum) {
        this.groupNum = groupNum;
    }
    public Integer getGroupTime() {
        return groupTime;
    }

    public void setGroupTime(Integer groupTime) {
        this.groupTime = groupTime;
    }
    public Date getOverTime() {
        return overTime;
    }

    public void setOverTime(Date overTime) {
        this.overTime = overTime;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
    public Integer getRefund() {
        return refund;
    }

    public void setRefund(Integer refund) {
        this.refund = refund;
    }
    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "OrderConfigGroup{" +
        "id=" + id +
        ", cid=" + cid +
        ", groupCode=" + groupCode +
        ", orderCode=" + orderCode +
        ", leader=" + leader +
        ", groupNum=" + groupNum +
        ", groupTime=" + groupTime +
        ", overTime=" + overTime +
        ", status=" + status +
        ", refund=" + refund +
        ", createTime=" + createTime +
        "}";
    }
}
